package jp.co.piratealliance.pirateAllianceWeb.helper;

import jp.co.piratealliance.pirateAllianceWeb.def.SysApplicationContext;
import jp.co.piratealliance.pirateAllianceWeb.service.com.CommonService;

/**
 * copyright   pirate alliance team 2014
 * @author     xuwei
 *
 */
public class CommonHelper
{
	/**
	 * 共通sequence取得
	 * @param seqName
	 * @return
	 */
	public static String getSequence(String seqName)
	{
		CommonService commonService = (CommonService)SysApplicationContext.getBean("commonService");

		return commonService.getSequence(seqName);
	}

	/**
	 * 金コインルール
	 * @return
	 */
	public static String getGoldenCoinsForOrder()
	{
		return "1";
	}

	/**
	 * 銀コインルールID
	 * @return
	 */
	public static String getSilverCoinsForOrder()
	{
		return "2";
	}

	/**
	 * 金コインルール
	 * @return
	 */
	public static String getGoldenCoinsForReg()
	{
		return "1";
	}

	/**
	 * 銀コインルールID
	 * @return
	 */
	public static String getSilverCoinsForReg()
	{
		return "2";
	}
}
